## realmd
cmake_minimum_required(VERSION 2.6)

project(realmd)

include_directories(
    ${PROJECT_SOURCE_DIR}
)

set(realmd_SRC
    common.h
    application.h
    application.cc
    main.cc
    
    ui/ui.h
    ui/ui_socket.h
    ui/ui_socket.cc
    ui/ui_socket_factory.h
    ui/ui_subsystem.h
    ui/ui_subsystem.cc
    ui/ui_realmlist.h
    ui/ui_realmlist.cc
    
    statics/statics.h
    statics/statics.cc
)

add_executable(realmd ${realmd_SRC})
target_link_libraries(realmd node node-binding shared)
if (WIN32)
target_link_libraries(realmd libmysql libeay32 libevent ws2_32)
else()
endif()